﻿using System;
using Common.Util;
using System.ComponentModel.DataAnnotations.Schema;

namespace Authentication.Model.Model
{
    public partial class AccountInfo
    {
        [NotMapped]
        public Guid GuidKey { get { return new Guid(this.ApplicationKey); } }

        [NotMapped]
        public bool Is_Anonynimous { get { return IsAnonymous.IsYes(); } }

        [NotMapped]
        public bool Is_Approved { get { return IsApproved.IsYes(); } }

        [NotMapped]
        public bool Is_LockedOut { get { return IsLockedout.IsYes(); } }

        [NotMapped]
        public bool Is_Deleted { get { return IsDeleted.IsYes(); } }

        [NotMapped]
        public bool Is_Suspended { get { return IsSuspended.IsYes(); } }

        [NotMapped]
        public bool Is_CanContextByEmail { get { return CanContactByEmail.IsYes(); } }

        public virtual Account Account { get; set; }
    }
}